<?php
 /*
    *判断对游记的操作
  */
include("/var/www/html/new/conf/yd.le.je");
$ydle=new yd_go_sql();
$ydle->connect(); 
include_once("class/Member.php");//会员类.*调用成员函数获取登录会员相关信息
include_once("common/blogModel.php");
$ac=$GLOBALS['_ac'];
$pw=$GLOBALS['_pw'];
$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));
$memberID=$_SESSION['sid'];
$m=new Member($s,$memberID);
$m_info=$m->info();
$b=new blogModel();
//print_r($m_info);
$dtype=$m_info['dtype'];
//$state = isset($_GET['state'])?abs($_GET['state']) : 1;//默认已读
if($dtype!=7){
    exit("您不是集团管理员，不能操作此项！");
}
if(empty($_GET)||isset($_GET['outbox'])){
	//选择已发布的游记,uu_blog为游记表
    $status=2;
	$lists=$b->getInfo($status);
    //print_r($lists);
    //exit;
}else if(isset($_GET['inbox'])){//选择待审核的游记
	$status=1;
	$lists=$b->getInfo($status);
}else if(isset($_GET['otherbox'])){//选择其他游记
	$status=3;
	$lists=$b->getInfo($status);
}



if(isset($_REQUEST['pub_blog'])){
    //发布游记
    $sql="update uu_blog set status=2 where id=$li_id limit 1";
    $result=$GLOBALS['ydle']->query($sql);
 
}



?>